package com.force.module.mcpclient.model;

import com.alibaba.cloud.ai.dashscope.chat.DashScopeChatOptions;
import org.springframework.stereotype.Component;


@Component
public class AliModel {

    public static DashScopeChatOptions getModel() {
        return DashScopeChatOptions.builder()
                .withEnableSearch(true) // 开启互联网搜索
                .withTopP(0.7) // 取值越大，生成的随机性越高；取值越低，生成的随机性越低。默认值为0.8
                .build();
    }
}
